import { defineStore } from 'pinia'
export const useStore = defineStore('main', {
	state: () => {
		return {
			storeName: 'main',
			num: 1
		}
	},
	//类似于computed
	getters: {
		numPlus: (state) => state.num * 2,
	}
})